/*******************************************************************************
 * Copyright (c) 2006 CEA List.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     CEA List - initial API and implementation
 *******************************************************************************/
package com.cea.papyrus.tabbedproperties.section;

import org.eclipse.uml2.uml.Enumeration;
import org.eclipse.uml2.uml.Property;

/**
 * 
 */
public class DefaultValueSectionFilter extends UMLElementFilter {

    /**
     * 
     * 
     * @param object 
     * 
     * @return 
     */
    @Override
	public boolean select(Object object) {

    	
    	// return true only if the property type is not an enumeration
        if (super.select(object)
        		&& (element instanceof Property)
        		&& ! (((Property)element).getType() instanceof Enumeration)) {
        	return true;
        }
       		
        return false;
    }
}
